﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Main_Stations_DS" targetNamespace="http://tempuri.org/Main_Stations_DS.xsd" xmlns:mstns="http://tempuri.org/Main_Stations_DS.xsd" xmlns="http://tempuri.org/Main_Stations_DS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="trangbaocao" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="trangbaocao (Web.config)" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.trangbaocao.ConnectionString" Provider="System.Data.OracleClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MAIN_STATIONSTableAdapter" GeneratorDataComponentClassName="MAIN_STATIONSTableAdapter" Name="MAIN_STATIONS" UserDataComponentName="MAIN_STATIONSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="trangbaocao (Web.config)" DbObjectName="DBN.MAIN_STATIONS" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>select a.name,count(b.id) tong_so_tram from main_stations a,stations b 
where a.id=b.main_stations_id group by a.name order by a.name
</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="TONG_SO_TRAM" DataSetColumn="TONG_SO_TRAM" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Main_Stations_DS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="Main_Stations_DS" msprop:Generator_UserDSName="Main_Stations_DS">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="MAIN_STATIONS" msprop:Generator_TableClassName="MAIN_STATIONSDataTable" msprop:Generator_TableVarName="tableMAIN_STATIONS" msprop:Generator_TablePropName="MAIN_STATIONS" msprop:Generator_RowDeletingName="MAIN_STATIONSRowDeleting" msprop:Generator_UserTableName="MAIN_STATIONS" msprop:Generator_RowChangingName="MAIN_STATIONSRowChanging" msprop:Generator_RowEvHandlerName="MAIN_STATIONSRowChangeEventHandler" msprop:Generator_RowDeletedName="MAIN_STATIONSRowDeleted" msprop:Generator_RowEvArgName="MAIN_STATIONSRowChangeEvent" msprop:Generator_RowChangedName="MAIN_STATIONSRowChanged" msprop:Generator_RowClassName="MAIN_STATIONSRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="150" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TONG_SO_TRAM" msprop:Generator_ColumnVarNameInTable="columnTONG_SO_TRAM" msprop:Generator_ColumnPropNameInRow="TONG_SO_TRAM" msprop:Generator_ColumnPropNameInTable="TONG_SO_TRAMColumn" msprop:Generator_UserColumnName="TONG_SO_TRAM" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>